import { $get,$post } from "../utils/request.ts";

//返回设施列表
export const $facilityList = async ()=>{
    let ret =await $get('facilityInfo/findAll')
    return ret.t
}

//返回单个设施
export const $facilityById = async (params:object)=>{
    let ret =await $get('facilityInfo/findById',params)
    return ret.t
}

//新增设施
export const $save = async (params:object)=>{
    let ret =await $post('facilityInfo/save',params)
    return ret
}

//删除设施
export const $delete = async (params:object)=>{
    let ret =await $get('facilityInfo/delete',params)
    return ret
}